import 'package:flutter/foundation.dart';

class KuAnProvider with ChangeNotifier {
  // 导航栏数据
  List<String> _navBarData = [
    '推荐',
    '热门',
    '分类',
    '专题',
    '榜单',
    '活动',
    '游戏',
    '应用'
  ];
  
  // 当前选中的导航项
  int _currentNavIndex = 0;

  // getters
  List<String> get navBarData => _navBarData;
  int get currentNavIndex => _currentNavIndex;

  // setters
  void setCurrentNavIndex(int index) {
    _currentNavIndex = index;
    notifyListeners();
  }
} 